#引入表单类
from django import forms
#引入文章模型，从models中
from .models import KucunPost,ZhizuoPost

class KucunPostForm(forms.ModelForm):
    
    class Meta:
        model = KucunPost
        fields = ("ban_num","green_num","red_num","yellow_num","dianzu_num","erjiguan_num",)


class ZhizuoPostForm(forms.ModelForm):
    
    class Meta:
        model = ZhizuoPost
        fields = ("zhizuo_name","han_green_num","han_yellow_num","han_red_num","han_total_num","cha_num","jian_num",)
